
module Evil

  class RunCurrentFile < RemoteAction
    def execute
      dialog = @window.log_dialog
      dialog.title = @editor.file
      file = current_file
      file.load {|c| dialog.append c }
      dialog.text_color = (file.success_loaded?)? Color::GREEN : Color::RED
    end
  end

end
